export const concert = () => {
    const Concert = class {
        /**
         * 读取缓存
         * @param {string} obj 缓存键
         * @param {*=} def 默认值
         */
        getParams(obj: any, def: string = ''): string {
            if(obj){
                return new URLSearchParams(obj).toString()
            }
            return def;
        }
    }
    return new Concert();
}

export const Concert = concert();
export default Concert;